/**
app.js
 */
import React, {
	Component
} from 'react';
import {
	AppRegistry,
	StyleSheet,
	Text,
	View,
	Platform,
	StatusBar,
} from 'react-native';

import {
	connect
} from 'react-redux'

import dp from './common/pxToDp'
import TabView from './containers/TabView'

class Com extends Component {
	constructor(props){
		super(props)
	}
	componentWillMount(){

	}
	render() {
		var iosdiv=null;
		if (Platform.OS === 'ios') {
			// iosdiv=(
			// 	<View style={{height:dp(20)}}></View>
			// )
		}
		return (
			<View style={{flex:1}}>
				<StatusBar
				    backgroundColor="#000"
					hidden={false}
					animated={false}
				/>
				<View style={{flex:1}}>
					<TabView {...this.props}></TabView>
				</View>
			</View>
		);
	}
}

export default connect(state => {
	return {
		state
	}
})(Com)
